<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/commons/taglib.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<link rel="stylesheet" type="text/css" href="${path}/easyui/themes/default/easyui.css">
<link rel="stylesheet" type="text/css" href="${path}/easyui/themes/icon.css">
<script type="text/javascript" src="${path}/scripts/jquery.min.js"></script>
<script type="text/javascript" src="${path}/easyui/jquery.easyui.min.js"></script>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>SmartCRM - 客户管理系统</title>
<script type="text/javascript">
	function submitForm() {
		var issubmit = true;
		$("input.easyui-validatebox").each(function(obj) {
			if ($(this).validatebox("isValid") == false) {
				issubmit = false;
			}
		});
		if (issubmit) {
			frmLogin.submit();
		}
	}
</script>
</head>
<body>
	<table align="center" width="420px;" style="margin-top: 160px;">
		<tr>
			<td>
				<div id="p" class="easyui-panel" title="欢迎使用 : SmartCRM 客户管理系统"
					style="width: fill; height: 300px; padding: 30px 10px 10px 10px;">
					<div>
						<form name="frmLogin" action="submit.do" method="post">
							<table align="center">
								<tr>
									<td>用户名：</td>
									<td><input class="easyui-validatebox" type="text" name="username" data-options="required:true" value='${username}' /></td>
								</tr>
								<tr>
									<td>密&nbsp;&nbsp;码：</td>
									<td><input class="easyui-validatebox" type="password" name="password" data-options="required:true" /> <input
										type="hidden" name="rememberMe" value="true" /></td>
								</tr>
							</table>
						</form>
					</div>
					<div style="text-align: center; padding: 5px">
						<a href="javascript:void(0)" class="easyui-linkbutton" onclick="submitForm()">提交</a>
					</div>
					<div>
						<!-- 提示信息 -->
						<s:actionmessage cssStyle="color: red" />
					</div>
				</div>
			</td>
		</tr>
	</table>
</body>
</html>